<!DOCTYPE html>
<html>
    
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
        <title>$.Object.forEach</title>
        <script>
            window.$$path = location.protocol + "//" + location.host;
            document.write('<script src="' + $$path + '/mass_merge.js"><\/script>')
            document.write('<script src="' + $$path + '/doc/scripts/common.js"><\/script>')
        </script>
    </head>
    
    <body>
        <article>
            <h3>object.forEach(fn, scope? )</h3>
            <p>
                <span class="stress">描述：</span>
            </p>
            <p>对对象的键值使用fn进行迭代。</p>
            <dl>
                <dt>fn</dt>
                <dd>必需。回调函数。</dd>
                <dt>score</dt>
                <dd>可选。要绑定的作用域。参数依次为value, key。</dd>
            </dl>
            <fieldset>
                <legend>例子</legend>
                <pre class="brush:javascript;gutter:false;toolbar:false">
$.require("lang", function() {
    var obj = {
        first: 'Sunday',
        second: 'Monday',
        third: 'Tuesday'
    };
    $.Object.forEach(obj, function(v) {
        $.log(v, true);
    });
});
</pre>
                <button class="doc_btn" type="button">点我，执行代码</button>
            </fieldset>
        </article>
    </body>

</html>